mmo: Fix MSVC problems.
authoroliskoli <oliskoli@f51c46e8-681c-474f-0cfe-069cfd0219fb>
Sat, 18 Oct 2008 22:22:51 +0000 (22:22 +0000)
committeroliskoli <oliskoli@f51c46e8-681c-474f-0cfe-069cfd0219fb>
Sat, 18 Oct 2008 22:22:51 +0000 (22:22 +0000)
git-svn-id: http://gpsbabel.googlecode.com/svn/trunk@3567 f51c46e8-681c-474f-0cfe-069cfd0219fb

gpsbabel/mmo.c

index 5bbcfaded877204b0ccffd6a3a3f8f7c14bfe65f..9159291a3c1dc4073969ba9d458fc66b19d880a0 100644 (file)
@@ -157,11 +157,11 @@ mmo_readstr(void)
 
 
 static int
-mmo_fillbuf2(void *buf, const gbsize_t bufsz, const int count, const int need_all)
+mmo_fillbuf2(void *buf, const gbsize_t bufsz, const gbsize_t count, const int need_all)
 {
-       int res;
+       gbsize_t res;
        
-       if (count > bufsz) fatal(MYNAME ": Internal error (bufsz too small)!\n");
+       if (count > (int)bufsz) fatal(MYNAME ": Internal error (bufsz too small)!\n");
        
        memset(buf, 0xFF, count);
        res = gbfread(buf, 1, count, fin);